﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="event_Phone_Img_add.aspx.cs" Inherits="admin_UKNOW_event_event_Phone_Img_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        td
        {
            font-size: 9pt;
        }
    </style>

    <script src="../../../fckeditor/fckeditor.js" type="text/javascript"></script>

    <script type="text/javascript">
        window.onload = function () {
            if (document.getElementById("mesContent")) {
                var fck = new FCKeditor('mesContent');
                fck.BasePath = "../../../fckeditor/";
                fck.Width = "85%";
                fck.Height = "400px"
                fck.ReplaceTextarea();
            }

        }
    </script>
    <script type="text/javascript">
        function checkNull() {
            var s = document.getElementById("Order").value;
            if (s != "") {
                var patrn = /^[0-9]*[1-9][0-9]*$/;
                if (!patrn.test(s)) {
                    alert("请输入正整数!");
                    return false;
                }
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" align="center" cellpadding="0">
        <tr>
            <td height="2" bgcolor="#A49B81">
            </td>
        </tr>
        <tr>
            <td height="22" background="../../images/position_bg.gif" bgcolor="#EEF6FE" style="background-repeat: repeat-y;
                background-position: left; padding-left: 6px; padding-top: 3px;">
                <asp:Label ID="headers" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="1" bgcolor="#B0C9E8">
                <br />
            </td>
        </tr>
    </table>
    <div style="height: 30PX">
    </div>
    <table width="80%" border="0" align="center" cellspacing="0" cellpadding="0">
        <tr bgcolor="#2583BC">
            <th align="left">
                添加活动图片
            </th>
        </tr>
    </table>
    <table width="80%" border="0" align="center" style="border: solid 1px #99C;">
        <tr>
            <td height="20" colspan="3">
            </td>
        </tr>
<%--        <tr>
            <td width="30%" height="33" align="right">
                <font color="#FF0000">*</font>活动名称：
            </td>
            <td width="3%">
                &nbsp;
            </td>
            <td width="67%">
                <asp:TextBox ID="EventName" runat="server" Width="316px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
--%>        <tr>
            <td width="30%" height="33" align="right">
                <font color="#FF0000"></font>图片名称：
            </td>
            <td width="3%">
                &nbsp;
            </td>
            <td width="67%">
                <asp:TextBox ID="ImgName" runat="server"></asp:TextBox>
            </td>
        </tr>
<%--        <tr>
            <td width="30%" height="33" align="right">
                <font color="#FF0000"></font>图片类型：
            </td>
            <td width="3%">
                &nbsp;
            </td>
            <td width="67%">
                <asp:DropDownList ID="ImgType" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
--%>        <tr>
            <td align="right">
                <font color="#FF0000"></font>图片描述：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:TextBox ID="descTxt" runat="server" Height="114px" TextMode="MultiLine" 
                    Width="452px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="20%" height="33" align="right">
                <font color="#FF0000">*</font> 上传图片：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:FileUpload ID="file" runat="server" Width="394px" />
            </td>
        </tr>
        <tr>
            <td width="20%" height="33" align="right">
                <font color="#FF0000">*</font> 上传缩略图：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:FileUpload ID="file1" runat="server" Width="394px" />
            </td>
        </tr>
        
        <%--<tr>--%>
        <tr>
            <td width="20%" height="33" align="right">
                <font color="#FF0000">*</font> 关键字：
            </td>
            <td>
  &nbsp;
            </td>
            <td>
                <asp:TextBox ID="KeyWord" runat="server"></asp:TextBox>
                (以空格分隔,不得超过五个)</td>
        </tr>
        <tr>
            <td width="20%" height="33" align="right">
                显示顺序：
            </td>
            <td>
  &nbsp;
            </td>
            <td>
                <asp:TextBox ID="Order" runat="server"></asp:TextBox>
                (填写整形数字,表示图片的显示顺序)</td>
        </tr> 
       
        <tr>
            <td width="30%" height="33" align="right">
                <font color="#FF0000">*</font>发布状态：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:RadioButtonList runat="server" ID="pub" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Text="否" Value="0" Selected="True" />
                    <asp:ListItem Text="是" Value="1" />
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td height="33" align="right">
            </td>
            <td>
                &nbsp;
            </td>
            <td height="35" align="left">
                <asp:Button ID="Button1" runat="server" Text="提交" OnClientClick="return checkNull();"
                    OnClick="Button1_Click" /></td>
        </tr>
    </table>
    </form>
</body>
</html>
